package com.xxl.sso.server.service;


import com.xxl.sso.server.core.model.UserInfo;
import com.xxl.sso.server.core.result.ReturnT;

public interface UserService {

    /**
     * 找到用户
     *
     * @param username 用户名
     * @param password 密码
     * @return {@link ReturnT}<{@link UserInfo}>
     */
    public ReturnT<UserInfo> findUser(String username, String password);


    /**
     * 注册用户
     *
     * @param userInfo 用户信息
     * @return {@link Boolean}
     */
    public ReturnT<Boolean> signUser(UserInfo userInfo);

}
